package com.example.musicapp.contract;
import com.example.musicapp.base.IBasePresenter;
import com.example.musicapp.base.IBaseView;
import com.example.musicapp.network.HttpResponseListener;

public interface IRegisterContract {

    /*** view 层接口 */
    interface IRegisterUi extends IBaseView {
        /*** 登录成功 */
        void registerSuccess();

        /**
         * 登录失败
         */
        void registerFailure();
    }

    /*** presenter 层接口 */
    interface IRegisterPre extends IBasePresenter {
        void register(String username, String password, String code,String name);

        int requestSendMessage(String text);
    }

    /*** model 层接口 */
    interface IRegisterModel {
        void register(String username, String password, HttpResponseListener callBack);

        void sendMessage(String phone ,HttpResponseListener callBack);

        void checkCode( String phone ,String password  ,String code,String name, HttpResponseListener callBack);
    }

}
